package com.hdcircles.autoform.model.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by hdcircles on 2016/12/16.
 */

public class UserFormBean implements Parcelable {

    private String Email;

    private User User;

    public String getEmail() {
        return Email;
    }

    public void setEmail(String email) {
        Email = email;
    }

    public com.hdcircles.autoform.model.bean.User getUser() {
        return User;
    }

    public void setUser(com.hdcircles.autoform.model.bean.User user) {
        User = user;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.Email);
        dest.writeParcelable(this.User, flags);
    }

    public UserFormBean() {
    }

    protected UserFormBean(Parcel in) {
        this.Email = in.readString();
        this.User = in.readParcelable(com.hdcircles.autoform.model.bean.User.class.getClassLoader());
    }

    public static final Parcelable.Creator<UserFormBean> CREATOR = new Parcelable.Creator<UserFormBean>() {
        @Override
        public UserFormBean createFromParcel(Parcel source) {
            return new UserFormBean(source);
        }

        @Override
        public UserFormBean[] newArray(int size) {
            return new UserFormBean[size];
        }
    };
}
